package com.yy.controller;

import com.yy.service.MyMessageProvider;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * Author young
 * Date 2022/12/30 21:49
 * Description: SpringCloudAlibaba
 */
@RestController
@RequestMapping("msg")
public class SendMessageController {
    @Resource
    private MyMessageProvider myMessageProvider;
    
    @GetMapping("one")
    public String msg(){
      return myMessageProvider.message()+"发送成功！";
    }
}
